package com.design.boot.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author kakayubei
 * @description
 * @date 2021/7/28 1:23
 */
@Component
@Data
public class MyCat {

    @Value("${my.cat.name}")
    private String name;

    @Value("${my.cat.age}")
    private int age;
}
